# +----------------------------------------------------------------------
# | Pink [ A modern python web framework ]
# +----------------------------------------------------------------------
# | Copyright (c) 2023 http:#unnnnn.com All rights reserved.
# +----------------------------------------------------------------------
# | Author: chenjianhua <unnnnn@foxmail.com>
# +----------------------------------------------------------------------

from src.pink.authentication import Auth
from src.pink.broadcasting import Broadcast
from src.pink.routes import Route

ROUTES = [
    Route.get("/", "WelcomeController@show").name("welcome"),
    Route.get("/flash_data", "WelcomeController@flash_data"),
    Route.get("/sessions", "WelcomeController@play_with_session").name(
        "play_with_session"
    ),
    Route.post("/", "WelcomeController@show"),
    Route.get("/contact", "WelcomeController@contact"),
    Route.post("/contact", "WelcomeController@contact_post"),
    Route.post("/input", "WelcomeController@input"),
    Route.post("/upload", "WelcomeController@upload").name("upload"),
    Route.get("/test", "WelcomeController@test"),
    Route.get("/emit", "WelcomeController@emit"),
    Route.get("/view", "WelcomeController@view"),
    Route.get("/mail", "MailableController@view"),
    Route.get("/users/@id", "WelcomeController@show_user").name("users.profile"),
    Route.view("/test_view", "test_view", {"show": "111"}),
    Route.get("/api/uploads/", "WelcomeController@test").middleware("throttle:api"),
    Route.get("/mock/gen_one/", "MockController@gen_one"),
]

Broadcast.routes()
Auth.routes()
